<?php
session_start();
require_once('config/config.php');
/* connessione al db */
$mysqli = new mysqli($_CFG[connect][host], $_CFG[connect][user], $_CFG[connect][pass], $_CFG[connect][database]);

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}
?>
<!DOCTYPE html>
<html lang="it">
<head>
    <title>phPOS - Point of Sales - www.cospa.biz</title>
    <!--<meta charset="utf-8" />-->
    <link rel="stylesheet" href="style/main.css" type="text/css" media="screen" />
	<script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" src="script/main.js"></script>
	
	<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />

</head>
<body>
<div id="menu">
<?php include_once('menu.inc.php'); ?>	
</div>
<div id="loadingbar" class="footerbar"><img src="images/ajax-loader.gif" alt="preloader..." /></div>
<div id="categorie">
<?php include_once('categorie.inc.php'); ?>
</div>
<div id="prodotti" class="clear">
<?php include_once('prodotti.inc.php'); ?>
</div>
<div id="cassa">
<?php include_once('cassa.inc.php'); ?>
</div>
	<script type="text/javascript" src="script/events.js"></script>
</body>
</html>
<?php
/* close connection */
$mysqli->close();
?>